Skip to content

fix: reorder autosave tick to account for weak hardware#1482

Merged
sylvessa merged 1 commit intoMCLCE:mainfrom
sylvessa:fix/reorder-autosave-tick
Apr 6, 2026
Merged

fix: reorder autosave tick to account for weak hardware#1482
sylvessa merged 1 commit intoMCLCE:mainfrom
sylvessa:fix/reorder-autosave-tick

Conversation

@sylvessa
Copy link
Copy Markdown
Contributor

@sylvessa sylvessa commented Apr 6, 2026

Description

reorders and does some autosave fixes to account for weaker hardware with big worlds

Changes

Previous Behavior

when a user decides to close the server in the middle of an autosave, it would try to save twice, crash
if an autosave happens too fast in consistency (low autosave timer), crash if they conflict

Root Cause

design flaw on my part, no proper checks for if it was autosaving or not in certain loops and the autosave loop too

New Behavior

autosave loop now checks if a pending autosve is happening properly now
when you close the server, it checks if an autosave is happening, and lets it do its thing before closing fully

Fix Implementation

added a bunch of checks regarding if an autosave is happening, and if everything hasnt been flushed yet

AI Use Disclosure

no

@sylvessa sylvessa merged commit 413baac into MCLCE:main Apr 6, 2026
1 check passed
@sylvessa sylvessa deleted the fix/reorder-autosave-tick branch April 6, 2026 17:34
itsRevela pushed a commit to itsRevela/LCE-Revelations that referenced this pull request Apr 11, 2026
itsRevela added a commit to itsRevela/LCE-Revelations that referenced this pull request Apr 11, 2026
Reviewed 8 upstream commits from smartcmd/MCLCE/MinecraftConsoles and recorded the result as a merge so GitHub stops reporting "behind upstream". All accepted changes were cherry-picked earlier in this branch, and this commit only absorbs the upstream commit SHAs as reachable ancestors using the "ours" merge strategy, so no tree changes come in from this commit itself.

Applied:
- 98a86fc feat: set intro scene background to white (MCLCE#1474)
- 413baac fix: reorder autosave tick to account for weak hardware (MCLCE#1482)
- d25b762 Fix _jeb easter egg on sheep (MCLCE#1488)

Partially applied:
- d0786f9 Update more references to old smartcmd repo (credits reorganization and Star History URL applied, Nightly download URLs dropped since our fork has its own release pipeline, itsRevela added to Project Maintainers on top of upstream's restructure)

Already present:
- b928351 Update Windows64_Minecraft.cpp (MCLCE#1468). Unicode WinAPI conversion was already applied during our Linux cross-compile work, so this was a no-op cherry-pick.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant